finding the vertex of a quadratic equation